package com.kgc.sbt.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created on 2021/6/22.
 * <p>
 * Author: GongMingJie
 * <p>
 * Description: 抢购配置类
 */
@Component
@ConfigurationProperties(prefix = "buy.limit")
@Data
public class BuyLimitConfig {

    /**
     * 商品库存数量前缀标识
     */
    private String stockNumPrefix;

    /**
     * 锁定用户前缀标识
     */
    private String lockUserPrefix;

    /**
     * 抢购总时长
     */
    private Integer buyLimitTime;

    /**
     * 锁定商品库存前缀标识
     */
    private String stockLockPrefix;

    /**
     * 锁库存时长
     */
    private Integer stockLockTime;

}
